<template>
	<courseNotes
	v-for="(item,index) in noteList"
	:key="index" 
	:title="item.courseResourceName" 
	:courseName="item.courseName"
	:homeworkId="item.id"
	:submitDate="'编辑时间：'+item.updateTime"
	></courseNotes>
</template>

<script setup>
	import {ref} from 'vue'
	import apis from '../../api/apis.js'
	const noteList = ref([])
	const getNote = async ()=>{
		let res = await apis.getAllNote()
		noteList.value = res.data
		console.log(noteList.value)
	}
	getNote()
</script>

<style lang="scss" scoped>
	       
</style>
